Class FileSystemImpl

All Implemented Interfaces:
IPCObject, Directory, FileSystem, SimFile

public class FileSystemImpl extends DirectoryImpl implements FileSystem
Information provided by the PKI file:

    \class FileSystem
    
    \brief FileSystem holds and manipulates the file system on routers and switches.
    
    \example network().getDevice("Router0").getProcess("FileManager").getFileSystem("flash:")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getSize

      public int getSize()
      Information provided by the PKI file:
      
          \brief Returns the size of the file system.
          
          \return int, the size of the file system.
          
              
      Specified by:
      getSize in interface FileSystem
      Specified by:
      getSize in interface SimFile
      Overrides:
      getSize in class SimFileImpl
      Returns:
      int Returns a int
    • getCapacity

      public int getCapacity()
      Information provided by the PKI file:
      
          \brief Returns the capacity of the file system.
          
          \return int, the capacity of the file system.
          
              
      Specified by:
      getCapacity in interface FileSystem
      Returns:
      int Returns a int
    • getSpaceFree

      public int getSpaceFree()
      Information provided by the PKI file:
      
          \brief Returns the amount of free space on the file system.
          
          \return int, the amount of free space on the file system.
          
              
      Specified by:
      getSpaceFree in interface FileSystem
      Returns:
      int Returns a int